#Boa:Frame:Frame1

import wx
from Frame_Clientes import *
from Frame_Pagamento import *
from Frame_Agendamento import *
from FrameServicos import *

def create(parent):
    return Frame1(parent)

[wxID_FRAME1, wxID_FRAME1AGENDA, wxID_FRAME1BUTTON1, wxID_FRAME1CLIENTES, 
 wxID_FRAME1PAGAMENTO, wxID_FRAME1SERVICOS, wxID_FRAME1STATICBITMAP1, 
 wxID_FRAME1STATICBOXCRISHAIR, 
] = [wx.NewId() for _init_ctrls in range(8)]

class Frame1(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(605, 176), size=wx.Size(526, 496),
              style=wx.DEFAULT_FRAME_STYLE, title='Frame1')
        self.SetClientSize(wx.Size(510, 458))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))
        self.Center(wx.BOTH)

        self.staticBoxCrisHair = wx.StaticBox(id=wxID_FRAME1STATICBOXCRISHAIR,
              label=u"Cristina's Hair", name=u'staticBoxCrisHair', parent=self,
              pos=wx.Point(8, 8), size=wx.Size(152, 448), style=0)
        self.staticBoxCrisHair.SetFont(wx.Font(11, wx.SWISS, wx.ITALIC, wx.BOLD,
              False, u'Tahoma'))

        self.Agenda = wx.Button(id=wxID_FRAME1AGENDA, label=u'Agenda',
              name=u'Agenda', parent=self, pos=wx.Point(24, 40),
              size=wx.Size(120, 64), style=1)
        self.Agenda.Bind(wx.EVT_BUTTON, self.OnAgendaButton,
              id=wxID_FRAME1AGENDA)

        self.Pagamento = wx.Button(id=wxID_FRAME1PAGAMENTO, label=u'Pagamento',
              name=u'Pagamento', parent=self, pos=wx.Point(24, 280),
              size=wx.Size(120, 64), style=0)
        self.Pagamento.Bind(wx.EVT_BUTTON, self.OnPagamentoButton,
              id=wxID_FRAME1PAGAMENTO)

        self.Clientes = wx.Button(id=wxID_FRAME1CLIENTES, label=u'Clientes',
              name=u'Clientes', parent=self, pos=wx.Point(24, 120),
              size=wx.Size(120, 64), style=0)
        self.Clientes.Bind(wx.EVT_BUTTON, self.OnClientesButton,
              id=wxID_FRAME1CLIENTES)

        self.Servicos = wx.Button(id=wxID_FRAME1SERVICOS, label=u'Servi\xe7os',
              name=u'Servicos', parent=self, pos=wx.Point(24, 200),
              size=wx.Size(120, 64), style=0)
        self.Servicos.Bind(wx.EVT_BUTTON, self.OnServicosButton,
              id=wxID_FRAME1SERVICOS)

        self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label=u'Sair',
              name='button1', parent=self, pos=wx.Point(48, 376),
              size=wx.Size(75, 48), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_FRAME1BUTTON1)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap(u"perfilface2.jpg",
              wx.BITMAP_TYPE_JPEG), id=wxID_FRAME1STATICBITMAP1,
              name='staticBitmap1', parent=self, pos=wx.Point(160, 0),
              size=wx.Size(350, 455), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnAgendaButton(self, event):
        tela = Frame_Agendamento(None)
        tela.Show()
        self.Close()
        

    def OnPagamentoButton(self, event):
        tela = Frame_Pagamento(None)
        tela.Show()
        self.Close()
        
        

    def OnClientesButton(self, event):
        tela = Frame_Clientes(None)
        tela.Show()
        self.Close()
        

    def OnServicosButton(self, event):
        tela = FrameServicos(None)
        tela.Show()
        self.Close()
        
        
    def OnButton1Button(self, event):
        self.Close(True)
